// 搜索相关封装
import instance from '@/utils/request'
export const reqGetSearch = (q) => {
  return instance({
    method: 'get',
    url: 'v1_0/suggestion',
    params: {
      q
    }

  })
}
// 获取搜索结果
export const reqGetSearchResult = (page, q) => {
  return instance({
    method: 'get',
    url: 'v1_0/search',
    params: {
      page,
      per_page: 10,
      q
    }
  })
}
